package com.zy.garbage.repository;

import com.zy.garbage.entity.Garbage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface GarbageRepository extends JpaRepository<Garbage,Integer> {
    @Transactional
    void deleteByGarbageId(Integer garbageId);
}
